package org.example.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.jdbcOperator.annotation.Column;
import org.example.jdbcOperator.entity.BaseEntity;

import java.io.Serializable;

/**
 * 学生
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Student extends BaseEntity {
    private String name;
    private int age;
    private int sex;
    @Column(name = "clazz", foreignEntity = true)
//    @Column(name = "clazz_id")
    private Clazz clazz;
}
